import request from "@/utils/request";
import type {articleModel,IarticleDetail,likeCollect} from "@/types/data";
//获取文章列表
export const getArticleList = (params:articleModel) =>{
    return request(
        '/admin/interview/query',
        'GET',
        params
    )
}

//获取文章详情
export const getArticleDetail = (params:IarticleDetail) =>{
    return request(
        '/admin/interview/show',
        'GET',
        params
    )
}


//收藏、点赞、取消收藏、取消点赞
export const collect = (data:likeCollect) =>{
    return request(
        '/h5/interview/opt',
        'POST',
        data
    )
}